/*
 * Copyright (c) zhg2yqq.com Corp.
 * All Rights Reserved.
 */
package com.zhg2yqq.wheels.log.dto;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.zhg2yqq.wheels.log.annotation.OperationLog;

/**
 * 日志处理参数
 *
 * @author zhg2yqq, 2022年11月30日
 * @version zhg2yqq v1.0
 */
public class LogInfoDTO {
    /**
     * 异常
     */
    private Throwable error;
    /**
     * 请求开始
     */
    private Date startDate;

    /**
     * 请求结束
     */
    private Date endDate;

    /**
     * 返回的对象json
     */
    private String result;

    /**
     * 方法参数json
     */
    private String parameter;

    /**
     * 方法名称
     */
    private String functionName;

    /**
     * 注解
     */
    private transient OperationLog annotation;

    /**
     * 请求
     */
    private transient HttpServletRequest request;

    /**
     * 响应
     */
    private transient HttpServletResponse response;

    public Throwable getError() {
        return error;
    }

    public void setError(Throwable error) {
        this.error = error;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getParameter() {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public OperationLog getAnnotation() {
        return annotation;
    }

    public void setAnnotation(OperationLog annotation) {
        this.annotation = annotation;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    public HttpServletResponse getResponse() {
        return response;
    }

    public void setResponse(HttpServletResponse response) {
        this.response = response;
    }
}
